package com.strange.mdl.module.mdl.controller.admin.sutras.vo.chapters;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 经书章节新增/修改 Request VO")
@Data
public class MdlSutraChaptersSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25629")
    private Long id;

    @Schema(description = "经书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11143")
    @NotNull(message = "经书ID不能为空")
    private Long sutraId;

    @Schema(description = "卷ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19137")
    @NotNull(message = "卷ID不能为空")
    private Long volumeId;

    @Schema(description = "章节号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "章节号不能为空")
    private Integer chapterNumber;

    @Schema(description = "章节标题")
    private String chapterTitle;

    @Schema(description = "章节副标题")
    private String chapterSubtitle;

    @Schema(description = "章节内容")
    private String content;

    @Schema(description = "字数", example = "16363")
    private Integer wordCount;

    @Schema(description = "排序")
    private Integer sortOrder;

}
